﻿using System;

namespace EkStudio.com.bean.xml.reflection
{
    /// <summary>
    /// XML根属性
    /// </summary>
    [AttributeUsage(AttributeTargets.Class,AllowMultiple = false,Inherited = false)]
    public class XmlRootElement:Attribute
    {
        private string name = "";
        private string description = "";

        public string Name
        {
            get
            {
                return name;
            }

            set
            {
                name = value;
            }
        }

        public string Description
        {
            get
            {
                return description;
            }

            set
            {
                description = value;
            }
        }

        public XmlRootElement()
        {

        }

        public XmlRootElement(string arg)
        {
            this.name = arg;
        }

        public XmlRootElement(string arg,string remark)
        {
            this.name = arg;
            this.description = remark;
        }
    }
}
